<? ini_set('memory_limit','10000M');?>
<style>
body { margin-top:5; font-size:12px;}
		.b_line { border-bottom:1px #AAAAAA solid; height:25px; font-size:14px}
		.border_t{border-top:1px inset #EEE;}
		.border_b{border-bottom:1px inset #EEE;}
		.border_l{border-left:1px inset #EEE;}
		.border_r{border-right:1px inset #EEE;}
		.xx:hover {cursor:pointer; background:#99FF99;}
		.xy:hover {cursor:pointer; background:#F30;}
		.box{border:0.5px solid #999}
		.box_t{border-top:1px solid #003;}
		.box_lbr{border:1px solid #003; border-top:none}
		.box_ltr{border:1px solid #003; border-bottom:none}
		.box_l{border-left:1px solid #003;}
		.box_r{border-right:1px solid #003;}
		.box_lb{border-left:1px solid #003;border-bottom:1px solid #003;}
		.box_rb{border-right:1px solid #003;border-bottom:1px solid #003;}
		.list_genap{cursor:pointer; background-color:#6699FF;}
		.list_ganjil{cursor:pointer; background-color:#9966FF;}
		.list_closed{cursor:pointer; background-color:#FF99FF;}
</style>
<table style='border-collapse:collapse' width='100%'>
	<tr align='left'><td colspan='6'><img src="<?=base_url();?>asset/img/ziebar_long2.png"><p><?=$add;?></td></tr>
	<tr align=''><td colspan='6' style="font-size:large">Laporan Transaksi Kas</td></tr>
	<tr align=''><td colspan='6'><b>Periode		  :<?=$frm_date. " s/d ". $to_date;?></b></td></tr>
	<tr align=''><td colspan='6'><b>Unit Bussines :<?=$unit_bus;?></b></td></tr>
	<tr align=''><td colspan='6'>&nbsp;</td></tr>
	<thead>
	<tr align='center' class="list_genap">
		<th width='5%' class='box'>No</th>
		<th width='10%' class='box'>Tanggal</th>
		<th width='10%' class='box'>Nomor Transaksi</th>		
		<th width='45%' class='box'>Uraian</th>
		<th width='15%' class='box'>Jumlah</th>
		<th width='5%' class='box'>Status</th>
	</tr>
	</thead><tbody>
	<? $n=0;$content='';$total=0;
	foreach($lst_usr as $r)
	{
		$n++;
			$content.=tr().
				td($n,'',false,'box','center').
				td(tglfromSql($r->tgl_trans),'',false,'box','center').
				td($r->doc_no,'',false,'box','center').
				td($r->ket_trans,'',false,'box').
				td(number_format(($r->status_trans==0)?(int)$r->debet:(int)$r->kredit,2),'',false,'box','right').
				td(($r->status_trans==0)?'Debet':'Kredit','',false,'box','center').
				 _tr();
		$total +=($r->status_trans==0)?(int)$r->debet:(int)$r->kredit;
	}
		$content.=tr('list_ganjil').
				  td('Jumlah','',false,'box','right\' colspan=\'4').
				  td('<b>'.number_format((int)$total,2).'</b>','',false,'box','right').
				  td('','',false,'box').
				  _tr();
	echo $content;
	?>	
	</tbody>
</table>
